package ${package1}.${package2}.${package3}.service;

import ${package1}.${package2}.${package3}.pojo.${table.name2};
import java.util.List;

public interface ${table.name2}Service {

        <#if table.key != "">${table.name2} selectByPrimaryKey(<#list table.columns as column><#if column.columnKey=='PRI'><#if column?counter!=1>,</#if>${column.javaType} ${column.variableName}</#if></#list>);</#if>

        List<${table.name2}> select${table.name2}s(Integer start,Integer limit);

        int select${table.name2}Total();

        <#if table.key != "">int deleteByPrimaryKey(<#list table.columns as column><#if column.columnKey=='PRI'><#if column?counter!=1>,</#if>${column.javaType} ${column.variableName}</#if></#list>);</#if>

        int insert(${table.name2} obj);

        <#if table.key != "">int  insertByDynamic(${table.name2} obj);</#if>

        <#if table.key != "">int updateByPrimaryKey(${table.name2} obj);</#if>

        <#if table.key != "">int updateByPrimaryKeyDynamic(${table.name2} obj);</#if>
}
